<div class="header">
    <back-Btn></back-Btn>
    <div class="header-tab flex">
        <span class="header-btn" ng-click="mytask.headermenuhandle($index)" ng-class="{active:mytask.headertabindex==$index}" ng-repeat="item in mytask.headtabList">
        {{item.value}}
    </span>
    </div>
    <div class="right-btn" ng-click="mytask.createTask()">
        创建任务
    </div>
</div>
<div class="pd20">
    <div class="task-tab flex mt10">
        <div class="sub-task-item" ng-click="mytask.submenuhandle($index)" ng-class="{active:mytask.subtabindex==$index}" ng-repeat="item in mytask.subtabList">
            {{item.value}}
        </div>
    </div>
    <div class="task-wrapper">
        <div class="task-label fw lh25 mt15 cl">
            {{mytask.headertabindex==0?"我负责的任务":"可查阅的任务"}} <div class="fr c-blue" ng-show="mytask.list1page!=0" ng-click="mytask.gotasklist(1)">更多</div>
        </div>
        <ul class="task-list lh25">
            <li ng-repeat="item in mytask.list1" class="flex" ng-class="{'pink': item.priority==3,'yellow' : item.priority==2,'gray' : item.priority==1}" ng-click="mytask.goDetail(item)">
                <div class="w25 tc">
                    <div class="user-pic">
                        <div class="item-avtar tc lh50">{{item.userName| username}}</div>
                    </div>
                </div>
                <div class="w75">
                    <p class="te">{{item.title}}</p>
                    <p>{{item.createDate}}</p>
                </div>
            </li>
        </ul>
    </div>
    <div class="task-wrapper" ng-show="mytask.headertabindex==0">
        <div class="task-label fw lh25 mt15 cl">
            我参与的任务<div class="fr c-blue" ng-show="mytask.list2page!=0" ng-click="mytask.gotasklist(2)">更多</div>
        </div>
        <ul class="task-list lh25">
            <li ng-repeat="item in mytask.list2" class="flex" ng-class="{'pink': item.priority==3,'yellow' : item.priority==2,'gray' : item.priority==1}" ng-click="mytask.goDetail(item)">
                <div class="w25 tc">
                    <div class="user-pic">
                        <div class="item-avtar tc lh50">{{item.userName| username}}</div>
                    </div>
                </div>
                <div class="w75">
                    <p class="te">{{item.title}}</p>
                    <p>{{item.createDate}}</p>
                </div>
            </li>
        </ul>
    </div>
    <div class="task-wrapper" ng-show="mytask.headertabindex==0">
        <div class="task-label fw lh25 mt15 cl">
            我创建的任务<div class="fr c-blue" ng-show="mytask.list3page!=0" ng-click="mytask.gotasklist(3)">更多</div>
        </div>
        <ul class="task-list lh25">
            <li ng-repeat="item in mytask.list3" class="flex" ng-class="{'pink': item.priority==3,'yellow' : item.priority==2,'gray' : item.priority==1}" ng-click="mytask.goDetail(item)">
                <div class="w25 tc">
                    <div class="user-pic">
                        <div class="item-avtar tc lh50">{{item.userName| username}}</div>
                    </div>
                </div>
                <div class="w75">
                    <p class="te">{{item.title}}</p>
                    <p>{{item.createDate}}</p>
                </div>
            </li>
        </ul>
    </div>
</div>
